package com.pay.dubbo.wx.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.pay.dubbo.wx.WxUserInfoServiceFacade;
import com.pay.entity.wx.WxUserInfo;
import com.pay.service.WxUserInfoService;

@Service("wxUserInfoServiceFacade")
public class WxUserInfoServiceFacadeImpl implements WxUserInfoServiceFacade{

	@Resource
	private WxUserInfoService wxInfoUserService;

	@Override
	public WxUserInfo findWxUserInfoByOpenId(String openId) {
		return wxInfoUserService.findWxUserInfoByOpenId(openId);
	}

	@Override
	public void updateWxUserInfo(WxUserInfo wxUserInfo) {
		wxInfoUserService.updateWxUserInfo(wxUserInfo);
	}

	@Override
	public void insertWxUserInfo(WxUserInfo wxUserInfo) {
		wxInfoUserService.insertWxUserInfo(wxUserInfo);
	}

	@Override
	public void comeWxUserInfoBatch(List<Object> openids) {
		wxInfoUserService.comeWxUserInfoBatch(openids);
	}

	@Override
	public List<WxUserInfo> findWxUserInfos(int page) {
		return wxInfoUserService.findWxUserInfos(page);
	}
}
